﻿//  --------------------------------
//  Copyright (c) PK Logix LLC. All rights reserved.
//  This source code is made available under the terms of the GNU General Public License version 2 (GPLv2)
//  http://www.codeplex.com/mvcclubsite/license
//  ---------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using MVCClubSite.Web.Configuration;

namespace MVCClubSite.Web.Configuration
{
    public class MVCClubSiteConfiguration : ConfigurationSection
    {
        [ConfigurationProperty("siteTitle", DefaultValue = "MVC Club Site")]
        public string SiteTitle
        {
            get { return base["siteTitle"].ToString(); }
            set { base["siteTitle"] = value; }
        }

        [ConfigurationProperty("siteSubTitle", DefaultValue = "Powered By ASP.NET MVC")]
        public string SiteSubTitle
        {
            get { return base["siteSubTitle"].ToString(); }
            set { base["siteSubTitle"] = value; }
        }

        [ConfigurationProperty("Announcements", IsRequired = true)]
        public AnnouncementsConfigurationElement Announcements
        {
            get { return (AnnouncementsConfigurationElement)base["Announcements"]; }
        }

        [ConfigurationProperty("Events", IsRequired = true)]
        public EventsConfigurationElement Events
        {
            get { return (EventsConfigurationElement)base["Events"]; }
        }
    }
}
